# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

_pkgname=dill
pkgname=python-$_pkgname
pkgver=0.3.6
pkgrel=2
pkgdesc='serialize all of python'
arch=('any')
url='https://github.com/uqfoundation/dill'
license=('MIT')
optdepends=('python-objgraph: graph support')
depends=('python')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/dill-$pkgver.tar.gz")
sha512sums=('921bd5122b9b90fd3426a7af5fc8ba70d09b92d740951f5db5d481abb280915d722410f174ab028134acff9a3659899c8f315242caa7a44d8e4b38dd02bb1fa3')

build() {
  cd $_pkgname-$_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build

  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et:
